
/**
 * 悬浮按钮  评论
 */
import util from "/common/js/util.js";
var app = getApp();

Component({
  mixins: [],
  data: {},
  props: {
    height:160,
    PID: "",
    TYPE_NAME: "",
    onTapFabClick:function onTapFabClick(e){}
  },
  didMount() {
    // debugger
    // this.setData({
    //     PID:this.props.PID,
    //     TYPE_NAME:this.props.TYPE_NAME
    // });
    
  },
  didUpdate() {
    
    this.setData({
        PID:this.props.PID,
        TYPE_NAME:this.props.TYPE_NAME
    });
    
  },
  didUnmount() {},
  methods: {
    popup(ref){
      this.popup=ref;
    },
    openFn(){
      let query={
        PID:this.props.PID,
        TYPE_NAME:this.props.TYPE_NAME
      }
      
      this.setData(query);
      // util.message(this.props.PID)
      this.popup.open(query);
    },
    // onTapFabClick:function onTapFabClick(e){
    //   this.props.onTapFabClick(e);
    // }
  },
});
